package org.jeecgframework.web.service;
import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.CbsAttachTaskEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface CbsAttachTaskServiceI extends CommonService{
	
 	<T> void delete(T entity);
 	
 	<T> Serializable save(T entity);
 	
 	<T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
    boolean doAddSql(CbsAttachTaskEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
    boolean doUpdateSql(CbsAttachTaskEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
    boolean doDelSql(CbsAttachTaskEntity t);
 	/*
 	查询全部待办任务
 	 */
    List<CbsAttachTaskEntity> getAllAttachTask();
	/**
	 * 根据影院ID，设备号查询待办任务
	 */
    List<CbsAttachTaskEntity> getAttachTaskByCondition(String cinemaId, String equipmentId);
    /**
	 * 根据影院ID，设备号查询状态不为 “取消”和“完成”的附加任务待办任务
	 */
    List<Map<String, Object>> getAttachTaskByConditionByStatus(String cinemaId, String equipmentId);
	/**
	 * 附加任务导出
	 *
	 * @param request
	 * @param response
	 */
	void exportAttachTaskInspectionPlan(HttpServletRequest request, HttpServletResponse response);
}
